_init: function(uiGroupClone) {
this._inverse = new Shell.InvertLightnessEffect();
this._brightnessContrast = new Clutter.BrightnessContrastEffect();
- this._colorSaturation = new Clutter.DesaturateEffect();
+ this._colorDesaturation = new Clutter.DesaturateEffect();
this._inverse.set_enabled(false);
this._brightnessContrast.set_enabled(false);
this._magView = uiGroupClone;
this._magView.add_effect(this._inverse);
this._magView.add_effect(this._brightnessContrast);
- this._magView.add_effect(this._colorSaturation);
+ this._magView.add_effect(this._colorDesaturation);
},
/**
*/
destroyEffects: function() {
this._magView.clear_effects();
- this._colorSaturation = null;
+ this._colorDesaturation = null;
this._brightnessContrast = null;
this._inverse = null;
this._magView = null;
},
setColorSaturation: function(factor) {
- this._colorSaturation.set_factor(factor);
+ this._colorDesaturation.set_factor(1.0 - factor);
},
getColorSaturation: function() {
- return this._colorSaturation.get_factor();
+ return 1.0 - this._colorDesaturation.get_factor();
},
/**